package org.eclipse.emf.extensions.microsoft;

import org.eclipse.emf.extensions.DBField;
import org.eclipse.emf.extensions.DBSchema;
import org.eclipse.emf.extensions.DBTable;
import org.eclipse.emf.extensions.IDBFieldDescriptor;
import org.eclipse.emf.extensions.IDBTableDescriptor;

public class MicrosoftTable extends DBTable {
    MicrosoftTable(DBSchema schema, IDBTableDescriptor descriptor) {
        super(schema, descriptor);
    }

    @Override
    protected String getListColumnSQL() {
        return "SELECT TOP 1 * FROM " + getDescriptor().getName(); //$NON-NLS-1$ 
    }

    @Override
    protected DBField wrap(IDBFieldDescriptor descriptor) {
        return new MicrosoftField(this, descriptor);
    }
}
